Optimal. Leaf size=249 \[ -\frac {\tanh ^{-1}\left (\frac {2 a+b \cot ^2(d+e x)}{2 \sqrt {a} \sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{2 \sqrt {a} e}-\frac {b \tanh ^{-1}\left (\frac {2 a+b \cot ^2(d+e x)}{2 \sqrt {a} \sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{4 a^{3/2} e}+\frac {\tanh ^{-1}\left (\frac {2 a-b+(b-2 c) \cot ^2(d+e x)}{2 \sqrt {a-b+c} \sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{2 \sqrt {a-b+c} e}+\frac {\sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)} \tan ^2(d+e x)}{2 a e} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.22, antiderivative size = 249, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 6, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.171, Rules used = {3782, 1265,
974, 744, 738, 212} \begin {gather*} -\frac {b \tanh ^{-1}\left (\frac {2 a+b \cot ^2(d+e x)}{2 \sqrt {a} \sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{4 a^{3/2} e}+\frac {\tan ^2(d+e x) \sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}{2 a e}-\frac {\tanh ^{-1}\left (\frac {2 a+b \cot ^2(d+e x)}{2 \sqrt {a} \sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{2 \sqrt {a} e}+\frac {\tanh ^{-1}\left (\frac {2 a+(b-2 c) \cot ^2(d+e x)-b}{2 \sqrt {a-b+c} \sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{2 e \sqrt {a-b+c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 738
Rule 744
Rule 974
Rule 1265
Rule 3782
Rubi steps
\begin {align*} \int \frac {\tan ^3(d+e x)}{\sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}} \, dx &=-\frac {\text {Subst}\left (\int \frac {1}{x^3 \left (1+x^2\right ) \sqrt {a+b x^2+c x^4}} \, dx,x,\cot (d+e x)\right )}{e}\\ &=-\frac {\text {Subst}\left (\int \frac {1}{x^2 (1+x) \sqrt {a+b x+c x^2}} \, dx,x,\cot ^2(d+e x)\right )}{2 e}\\ &=-\frac {\text {Subst}\left (\int \left (\frac {1}{x^2 \sqrt {a+b x+c x^2}}-\frac {1}{x \sqrt {a+b x+c x^2}}+\frac {1}{(1+x) \sqrt {a+b x+c x^2}}\right ) \, dx,x,\cot ^2(d+e x)\right )}{2 e}\\ &=-\frac {\text {Subst}\left (\int \frac {1}{x^2 \sqrt {a+b x+c x^2}} \, dx,x,\cot ^2(d+e x)\right )}{2 e}+\frac {\text {Subst}\left (\int \frac {1}{x \sqrt {a+b x+c x^2}} \, dx,x,\cot ^2(d+e x)\right )}{2 e}-\frac {\text {Subst}\left (\int \frac {1}{(1+x) \sqrt {a+b x+c x^2}} \, dx,x,\cot ^2(d+e x)\right )}{2 e}\\ &=\frac {\sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)} \tan ^2(d+e x)}{2 a e}-\frac {\text {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {2 a+b \cot ^2(d+e x)}{\sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{e}+\frac {\text {Subst}\left (\int \frac {1}{4 a-4 b+4 c-x^2} \, dx,x,\frac {2 a-b-(-b+2 c) \cot ^2(d+e x)}{\sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{e}+\frac {b \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x+c x^2}} \, dx,x,\cot ^2(d+e x)\right )}{4 a e}\\ &=-\frac {\tanh ^{-1}\left (\frac {2 a+b \cot ^2(d+e x)}{2 \sqrt {a} \sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{2 \sqrt {a} e}+\frac {\tanh ^{-1}\left (\frac {2 a-b+(b-2 c) \cot ^2(d+e x)}{2 \sqrt {a-b+c} \sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{2 \sqrt {a-b+c} e}+\frac {\sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)} \tan ^2(d+e x)}{2 a e}-\frac {b \text {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {2 a+b \cot ^2(d+e x)}{\sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{2 a e}\\ &=-\frac {\tanh ^{-1}\left (\frac {2 a+b \cot ^2(d+e x)}{2 \sqrt {a} \sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{2 \sqrt {a} e}-\frac {b \tanh ^{-1}\left (\frac {2 a+b \cot ^2(d+e x)}{2 \sqrt {a} \sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{4 a^{3/2} e}+\frac {\tanh ^{-1}\left (\frac {2 a-b+(b-2 c) \cot ^2(d+e x)}{2 \sqrt {a-b+c} \sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)}}\right )}{2 \sqrt {a-b+c} e}+\frac {\sqrt {a+b \cot ^2(d+e x)+c \cot ^4(d+e x)} \tan ^2(d+e x)}{2 a e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 32.13, size = 37459, normalized size = 150.44 \begin {gather*} \text {Result too large to show} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.84, size = 0, normalized size = 0.00 \[\int \frac {\tan ^{3}\left (e x +d \right )}{\sqrt {a +b \left (\cot ^{2}\left (e x +d \right )\right )+c \left (\cot ^{4}\left (e x +d \right )\right )}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 5.22, size = 1516, normalized size = 6.09 \begin {gather*} \left [\frac {{\left (2 \, \sqrt {a - b + c} a^{2} \log \left (\frac {{\left (8 \, a^{2} - 8 \, a b + b^{2} + 4 \, a c\right )} \tan \left (x e + d\right )^{4} + 2 \, {\left (4 \, a b - 3 \, b^{2} - 4 \, {\left (a - b\right )} c\right )} \tan \left (x e + d\right )^{2} + b^{2} + 4 \, {\left (a - 2 \, b\right )} c + 8 \, c^{2} + 4 \, {\left ({\left (2 \, a - b\right )} \tan \left (x e + d\right )^{4} + {\left (b - 2 \, c\right )} \tan \left (x e + d\right )^{2}\right )} \sqrt {a - b + c} \sqrt {\frac {a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2} + c}{\tan \left (x e + d\right )^{4}}}}{\tan \left (x e + d\right )^{4} + 2 \, \tan \left (x e + d\right )^{2} + 1}\right ) + 4 \, {\left (a^{2} - a b + a c\right )} \sqrt {\frac {a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2} + c}{\tan \left (x e + d\right )^{4}}} \tan \left (x e + d\right )^{2} + {\left (2 \, a^{2} - a b - b^{2} + {\left (2 \, a + b\right )} c\right )} \sqrt {a} \log \left (8 \, a^{2} \tan \left (x e + d\right )^{4} + 8 \, a b \tan \left (x e + d\right )^{2} + b^{2} + 4 \, a c - 4 \, {\left (2 \, a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2}\right )} \sqrt {a} \sqrt {\frac {a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2} + c}{\tan \left (x e + d\right )^{4}}}\right )\right )} e^{\left (-1\right )}}{8 \, {\left (a^{3} - a^{2} b + a^{2} c\right )}}, \frac {{\left (\sqrt {a - b + c} a^{2} \log \left (\frac {{\left (8 \, a^{2} - 8 \, a b + b^{2} + 4 \, a c\right )} \tan \left (x e + d\right )^{4} + 2 \, {\left (4 \, a b - 3 \, b^{2} - 4 \, {\left (a - b\right )} c\right )} \tan \left (x e + d\right )^{2} + b^{2} + 4 \, {\left (a - 2 \, b\right )} c + 8 \, c^{2} + 4 \, {\left ({\left (2 \, a - b\right )} \tan \left (x e + d\right )^{4} + {\left (b - 2 \, c\right )} \tan \left (x e + d\right )^{2}\right )} \sqrt {a - b + c} \sqrt {\frac {a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2} + c}{\tan \left (x e + d\right )^{4}}}}{\tan \left (x e + d\right )^{4} + 2 \, \tan \left (x e + d\right )^{2} + 1}\right ) + 2 \, {\left (a^{2} - a b + a c\right )} \sqrt {\frac {a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2} + c}{\tan \left (x e + d\right )^{4}}} \tan \left (x e + d\right )^{2} + {\left (2 \, a^{2} - a b - b^{2} + {\left (2 \, a + b\right )} c\right )} \sqrt {-a} \arctan \left (\frac {{\left (2 \, a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2}\right )} \sqrt {-a} \sqrt {\frac {a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2} + c}{\tan \left (x e + d\right )^{4}}}}{2 \, {\left (a^{2} \tan \left (x e + d\right )^{4} + a b \tan \left (x e + d\right )^{2} + a c\right )}}\right )\right )} e^{\left (-1\right )}}{4 \, {\left (a^{3} - a^{2} b + a^{2} c\right )}}, \frac {{\left (4 \, a^{2} \sqrt {-a + b - c} \arctan \left (-\frac {{\left ({\left (2 \, a - b\right )} \tan \left (x e + d\right )^{4} + {\left (b - 2 \, c\right )} \tan \left (x e + d\right )^{2}\right )} \sqrt {-a + b - c} \sqrt {\frac {a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2} + c}{\tan \left (x e + d\right )^{4}}}}{2 \, {\left ({\left (a^{2} - a b + a c\right )} \tan \left (x e + d\right )^{4} + {\left (a b - b^{2} + b c\right )} \tan \left (x e + d\right )^{2} + {\left (a - b\right )} c + c^{2}\right )}}\right ) + 4 \, {\left (a^{2} - a b + a c\right )} \sqrt {\frac {a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2} + c}{\tan \left (x e + d\right )^{4}}} \tan \left (x e + d\right )^{2} + {\left (2 \, a^{2} - a b - b^{2} + {\left (2 \, a + b\right )} c\right )} \sqrt {a} \log \left (8 \, a^{2} \tan \left (x e + d\right )^{4} + 8 \, a b \tan \left (x e + d\right )^{2} + b^{2} + 4 \, a c - 4 \, {\left (2 \, a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2}\right )} \sqrt {a} \sqrt {\frac {a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2} + c}{\tan \left (x e + d\right )^{4}}}\right )\right )} e^{\left (-1\right )}}{8 \, {\left (a^{3} - a^{2} b + a^{2} c\right )}}, \frac {{\left (2 \, a^{2} \sqrt {-a + b - c} \arctan \left (-\frac {{\left ({\left (2 \, a - b\right )} \tan \left (x e + d\right )^{4} + {\left (b - 2 \, c\right )} \tan \left (x e + d\right )^{2}\right )} \sqrt {-a + b - c} \sqrt {\frac {a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2} + c}{\tan \left (x e + d\right )^{4}}}}{2 \, {\left ({\left (a^{2} - a b + a c\right )} \tan \left (x e + d\right )^{4} + {\left (a b - b^{2} + b c\right )} \tan \left (x e + d\right )^{2} + {\left (a - b\right )} c + c^{2}\right )}}\right ) + 2 \, {\left (a^{2} - a b + a c\right )} \sqrt {\frac {a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2} + c}{\tan \left (x e + d\right )^{4}}} \tan \left (x e + d\right )^{2} + {\left (2 \, a^{2} - a b - b^{2} + {\left (2 \, a + b\right )} c\right )} \sqrt {-a} \arctan \left (\frac {{\left (2 \, a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2}\right )} \sqrt {-a} \sqrt {\frac {a \tan \left (x e + d\right )^{4} + b \tan \left (x e + d\right )^{2} + c}{\tan \left (x e + d\right )^{4}}}}{2 \, {\left (a^{2} \tan \left (x e + d\right )^{4} + a b \tan \left (x e + d\right )^{2} + a c\right )}}\right )\right )} e^{\left (-1\right )}}{4 \, {\left (a^{3} - a^{2} b + a^{2} c\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\tan ^{3}{\left (d + e x \right )}}{\sqrt {a + b \cot ^{2}{\left (d + e x \right )} + c \cot ^{4}{\left (d + e x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\mathrm {tan}\left (d+e\,x\right )}^3}{\sqrt {c\,{\mathrm {cot}\left (d+e\,x\right )}^4+b\,{\mathrm {cot}\left (d+e\,x\right )}^2+a}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________